package com.runda.system.service;


import java.util.List;

import com.bbjob.model.User;
import com.bbjob.util.service.IService;
import com.github.pagehelper.PageInfo;

/**
 * 用户管理
 * @author DongYang
 *
 */
public interface UserService extends IService<User>{
	
	public int saveUser(User user);
	
	public int editUser(User user);
	
	public int deleteUser(Integer id);
	
	public PageInfo<User> getlist(User user, int page, int size);
	
	public int setUserToRole(Integer userid,String role);
	
	public List<Integer> getauth(Integer userid);
	
	public int resetPassword(Integer userid);
	
	public int changePassword(Integer userid,String oldpaswsord,String newpassword);

	public User getUserInfo(User user);
	
	public int createUserByDirector(User user,Integer userid);
	
	public PageInfo<User> getTeacherList(User user, int page, int size,int userid);
	
	public int editTeacher(User user);
	
	public int deleteTeacher(Integer userid,Integer jwtUserid);
}
